package com.yuerlive.rainbow.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Admin on 2017/6/19.
 */

public class RecommendLive implements Parcelable{
    @SerializedName("live_icon")
    private String liveIcon;
    @SerializedName("live_id")
    private String liveId;
    @SerializedName("chat_room_id")
    private String chatRoomId;

    public String getLiveIcon() {
        return liveIcon;
    }

    public void setLiveIcon(String liveIcon) {
        this.liveIcon = liveIcon;
    }

    public String getLiveId() {
        return liveId;
    }

    public void setLiveId(String liveId) {
        this.liveId = liveId;
    }

    public String getChatRoomId() {
        return chatRoomId;
    }

    public void setChatRoomId(String chatRoomId) {
        this.chatRoomId = chatRoomId;
    }

    protected RecommendLive(Parcel in) {
        liveIcon = in.readString();
        liveId = in.readString();
        chatRoomId = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(liveIcon);
        dest.writeString(liveId);
        dest.writeString(chatRoomId);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RecommendLive> CREATOR = new Creator<RecommendLive>() {
        @Override
        public RecommendLive createFromParcel(Parcel in) {
            return new RecommendLive(in);
        }

        @Override
        public RecommendLive[] newArray(int size) {
            return new RecommendLive[size];
        }
    };


}
